package com.zme.entity;

import java.util.List;

public class ClassEntity {
    private int classNo;
    private String className;
    private List<Student> studentList;

    public ClassEntity() {
    }

    public ClassEntity(String className, List<Student> studentList) {
        this.className = className;
        this.studentList = studentList;
    }

    public ClassEntity(int classNo, String className, List<Student> studentList) {
        this.classNo = classNo;
        this.className = className;
        this.studentList = studentList;
    }

    public int getClassNo() {
        return classNo;
    }

    public String getClassName() {
        return className;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setClassNo(int classNo) {
        this.classNo = classNo;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "ClassEntity{" +
                "classNo=" + classNo +
                ", className='" + className + '\'' +
                ", studentList=" + studentList +
                '}';
    }
}
